﻿@model XPressify.Models.GroupMembersModel
@using Omu.Awesome.Core;
@using Omu.Awesome.Mvc.Helpers;

@{
    ViewBag.Title = "Group members";
}

<table>
    <tr>
        <th width="50px">Name</th>
        <th></th>
    </tr>
    @foreach (var participant in Model.Members)
    {
        <tr>
            <td>
                <a href='@Url.Action("ProfileView", "Profile", new { id = participant.Id })' class="nobtn">
                    <img src= "@participant.ProfilePicturePath" alt="Profile picture" title="Profile picture" style="width: 40px;height: 40px;" />
                </a>
            </td>
            <td>
                @Html.ActionLink(participant.FullName, "ProfileView", "Profile", new { id = participant.Id }, new { @class = "nobtn"})
            </td>
        </tr>
    }
</table>
